package com.example.demo.TakeMaterial.service;

import com.example.demo.TakeMaterial.dto.purchaseGood;
import com.example.demo.TakeMaterial.entity.RequisitionHeader;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.common.ResponseData;
import com.example.demo.entryWarehouse.dto.Acceptance;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangxuan
 * @since 2021-05-17
 */
public interface RequisitionHeaderService extends IService<RequisitionHeader> {

    //所有的验收记录
    ResponseData selectAll1(String department);

    //所有的验收记录
    ResponseData selectAll();

    //所有未完成的验收记录
    ResponseData selectByNot();

    //添加申请
    ResponseData AddPurchase(purchaseGood Goods);

    //通过领料流水号查找验收流水号
    ResponseData selectByReID(String ReId);

    //查出批次申请的信息
    ResponseData selectByAccId(String acceptId);

    //删除申请信息
    ResponseData RemoveAdmin(String id);

    //修改状态
    ResponseData editStatus(RequisitionHeader requisitionHeader);

    //通过审批一
    ResponseData auditPassed(String requisitionId);

    //审核一通过，交给单位审核
    ResponseData departPassed(String requisitionId);

    //未通过审批一
    ResponseData auditFailed(String requisitionId);

    //审核二通过，交给单位审核
    ResponseData unitPassed(String requisitionId);

    //未通过审批二
    ResponseData unitFailed(String requisitionId);

    ResponseData selectByStatus(String status);

    ResponseData deleteByRequisitionId(String requisitionId);
}
